package org.jix.weblog.module.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @version 1.0
 * @Author Jix
 * @Date 2024/7/16 11:39
 * @注释
 */

@Getter
@Setter
public class BizException extends RuntimeException {
    private String errorCode;
    private String errorMsg;
    public BizException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMsg = baseExceptionInterface.getErrorMessage();
    }
}
